"""
library -> books
publish -> press
"""
import re

re.sub("library","books",data)